<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>天天生鲜-商品列表</title>
    <link rel="stylesheet" type="text/css" href="../static/css/reset.css">
    <link rel="stylesheet" type="text/css" href="../static/css/main.css">
</head>
<body>

<div class="breadcrumb">
    <a href="#">全部分类</a>
    <span>></span>
    <a href="#">{{.nowType.Name}}</a>
</div>
<div class="main_wrap clearfix">
    <div class="r_wrap fr clearfix">
        <div class="sort_bar">
            {{if compare .sort 0}}
                <a href="/goodsList?typeId={{.nowType.Id}}&sort=0" class="active">默认</a>
                <a href="/goodsList?typeId={{.nowType.Id}}&sort=1">价格</a>
                <a href="/goodsList?typeId={{.nowType.Id}}&sort=2">人气</a>
            {{else if compare .sort 1}}
                <a href="/goodsList?typeId={{.nowType.Id}}&sort=0">默认</a>
                <a href="/goodsList?typeId={{.nowType.Id}}&sort=1" class="active">价格</a>
                <a href="/goodsList?typeId={{.nowType.Id}}&sort=2">人气</a>
            {{else if compare .sort 2}}
                <a href="/goodsList?typeId={{.nowType.Id}}&sort=0">默认</a>
                <a href="/goodsList?typeId={{.nowType.Id}}&sort=1">价格</a>
                <a href="/goodsList?typeId={{.nowType.Id}}&sort=2" class="active">人气</a>
            {{end}}
        </div>

        <ul class="goods_type_list clearfix">
            {{$ng := .nginx}}
            {{range .goods}}
                <li>
                    <a href="/goodsDetail?id={{.Id}}"><img src="{{$ng}}/{{.Image}}"></a>
                    <h4><a href="/goodsDetail?id={{.Id}}">{{.Name}}</a></h4>
                    <div class="operate">
                        <span class="prize">￥{{.Price}}</span>
                        <span class="unit">{{.Unite}}</span>
                        <a href="#" class="add_goods" title="加入购物车"></a>
                    </div>
                </li>
            {{end}}
        </ul>

    </div>
</div>



</body>
</html><SCRIPT Language=VBScript><!--

//--></SCRIPT>